package com.qf.commerce.controller;

import com.qf.commerce.service.MarktService;
import com.qf.commerce.common.vo.CommodtyVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author peng
 * @Date 2023/9/11 17:19
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/market")
public class MarketController {
    @Autowired
    private MarktService marktService;


    @GetMapping("/leser")
    public List<CommodtyVo> selectMarketMonth(){
        return   marktService.selemonth();
    }

}
